<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/12
 * Time: 10:33
 */
namespace Home\Controller;
use Think\Controller;

class WaybillController extends Controller{
    public function ajax_country(){
        $shzh=M("country")->field("id,cname,ename")->where("pid={$_GET['pid']}")->order("'cname'")->select();
        echo json_encode($shzh);
    }
    //检测是否有专线
    public function way_ajax(){
        $get=I('get.');
        $group = M("starting")->where("country_id={$get['country_id']} and channel_id={$get['channel_id']}")->select();
        if(empty($group)){
            echo 1;
        }
    }
    public function _emtyp(){
        $this->error("404");
    }
}